package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.ContractWorkersDao;
import com.site.wisdom_construction.entity.personnelModule.ContractWorkers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2021/12/28
 * @Description
 */
@Service
public class ContractWorkersService implements ContractWorkersDao {
    @Autowired
    private ContractWorkersDao contractWorkersDao;

    @Override
    public int insertContractWorkersByMap(Map map) {
        return contractWorkersDao.insertContractWorkersByMap(map);
    }

    @Override
    public int insertContractWorkersByEntity(ContractWorkers contractWorkers) {
        return contractWorkersDao.insertContractWorkersByEntity(contractWorkers);
    }

    @Override
    public int deleteContractWorkers(Map map) {
        return contractWorkersDao.deleteContractWorkers(map);
    }

    @Override
    public int updateContractWorkers(Map map) {
        return contractWorkersDao.updateContractWorkers(map);
    }

    @Override
    public List<ContractWorkers> findContractWorkersByPage(Map map) {
        return contractWorkersDao.findContractWorkersByPage(map);
    }

    @Override
    public long Total(Map map) {
        return contractWorkersDao.Total(map);
    }

    @Override
    public List<ContractWorkers> findContractWorkersByPhone(Map map) {
        return contractWorkersDao.findContractWorkersByPhone(map);
    }

    @Override
    public ContractWorkers findContractWorkersById(Map map) {
        return contractWorkersDao.findContractWorkersById(map);
    }
}
